package edu.tgc.entity.system;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class SysDeptPosition implements Serializable {

    private static final long serialVersionUID = -397692375376781555L;
    protected SysDept dept;
    protected SysPosition position;

    public SysDeptPosition() {
    }

    public SysDeptPosition(SysDept dept, SysPosition position) {
        this.dept = dept;
        this.position = position;
    }

    @ManyToOne
    @JoinColumn(name = "dept_id")
    public SysDept getDept() {
        return this.dept;
    }

    @ManyToOne
    @JoinColumn(name = "position_id")
    public SysPosition getPosition() {
        return this.position;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public void setPosition(SysPosition position) {
        this.position = position;
    }

}
